// const https = require('https')

// const url = new URL('https://api.juejin.cn/content_api/v1/content/article_rank?category_id=1&type=hot&count=3&from=1&aid=2608&uuid=7145810834685003271&spider=0')
// const req = https.request({
//     method:'GET',
//     hostname:url.hostname,
//     path:url.pathname + url.search
// },res => {
//     console.log(res.statusCode)
//     let data = ''
//     res.on('data',chunk => {
//         data += chunk
//     })
//     res.on('end',() => {
//         console.log(data)
//     })
// })
// req.end()
const http = require